package HLLibClasses;

import HLCode.HLClassManager;
import HLCode.HLLibClass;
import HLCode.HLObject;
import HLLib.base.HLGraphics;
import HLLib.control.HLLabel;

public class HLClassLabel extends HLLibClass {
    public HLClassLabel(HLClassManager owner) {
        super(owner);
    }

    public HLObject NewObject() {
        return new HLLabel();
    }

    public void Execute(HLObject self, int index, HLObject args, HLObject resultOwnerObject, int resultIndex) {
        switch (index) {
        case 0: {
            ((HLLabel) self).SettingNormal(args.GetInt(0), args.GetInt(1), args.GetInt(2), args.GetInt(3));
            break;
        }
        case 1: {
            ((HLLabel) self).SettingThrough(args.GetInt(0), args.GetInt(1), args.GetInt(2), args.GetInt(3), args.GetInt(4), args.GetInt(5));
            break;
        }
        case 2: {
            ((HLLabel) self).SettingSwing(args.GetInt(0), args.GetInt(1), args.GetInt(2), args.GetInt(3), args.GetInt(4), args.GetInt(5));
            break;
        }
        case 3: {
            ((HLLabel) self).SetArea(args.GetInt(0), args.GetInt(1), args.GetInt(2), args.GetInt(3));
            break;
        }
        case 4: {
            ((HLLabel) self).Logic();
            break;
        }
        case 5: {
            ((HLLabel) self).Render((HLGraphics)args.GetObject(0));
            break;
        }
        case 6: {
            ((HLLabel) self).Refresh();
            break;
        }
        case 7: {
            ((HLLabel) self).UnLoad();
            break;
        }
        }
    }
}
